/**
 * @author lianPf
 * @date 2017-12-12
 * */

import React from 'react'
import { Tabs } from 'antd'
import RepeatPayOrder from './repeatPayOrder'
import RepeatRepaymentOrder from './repeatRepaymentOrder'
import OvertimePayOrder from './overtimePayOrder'

const { TabPane } = Tabs

class Index extends React.Component {
  constructor (props) {
    super(props)
  }

  render () {
    function callback (key) {
      console.log(key)
    }

    return (
      <div>
        <Tabs onChange={callback} type='card'>
          <TabPane tab='重复打款订单' key='1'>
            <RepeatPayOrder />
          </TabPane>
          <TabPane tab='重复还款订单' key='2'>
            <RepeatRepaymentOrder />
          </TabPane>
          <TabPane tab='超时打款订单' key='3'>
            <OvertimePayOrder />
          </TabPane>
        </Tabs>
      </div>
    )
  }
}

export default Index
